package hz.mobileproject.pda.ui.base;

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;

import com.google.gson.Gson;

import org.xutils.x;

/**
 * Created by Lc on 2017/12/18.
 */
public abstract class BaseActivity extends Activity {
    protected Gson mGson;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        x.view().inject(this);
        mGson = new Gson();
        initData();
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
    }

    protected abstract void initData();

}
